package com.cnpinxi.service;

import com.cnpinxi.domain.BindDistributor;
import com.cnpinxi.domain.User;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-11-21.
 */
public interface UserService {
    void regedit(User user);

    User login(User user);

    User getUserById(Long userId);

    User getUserByPhone(String phone);

    List<User> getUserList(Map<String, String> map);

    void modifyUser(User user);

    void createSourceQRCode(User user);

    /**
     *
     * 绑定分销商
     * @param openId
     * @param activityId
     */
    void bindDistributor(String openId, Long activityId);
    BindDistributor getBindDistributor(String openId);

    User getParentUserByopenId(String openId);
}
